package com.dibang.app.operation.provider;

import com.dibang.app.mvp.abs.AbsProvider;
import com.dibang.app.mvp.abs.BeanFactory;
import com.dibang.app.operation.model.abs.PeerModel;
import com.dibang.app.operation.model.impl.PeerModelImpl;
import com.dibang.app.operation.presenter.abs.PeerPresenter;
import com.dibang.app.operation.presenter.impl.PeerPresenterImpl;
import com.dibang.app.operation.view.abs.PeerView;
import com.dibang.app.operation.view.impl.PeerViewImpl;

/**
 * Created by wxl on 2019/7/24.
 *
 */

public class PeerProImpl extends AbsProvider<PeerView,PeerPresenter,PeerModel> {

    @Override
    public PeerView getView() {
        return BeanFactory.getInstance(PeerViewImpl.class);
    }

    @Override
    public PeerPresenter getPresenter() {
        return BeanFactory.getInstance(PeerPresenterImpl.class);
    }

    @Override
    public PeerModel getModel() {
        return BeanFactory.getInstance(PeerModelImpl.class);
    }

    @Override
    public void onDestroy() {
        BeanFactory.remove(PeerViewImpl.class,PeerPresenterImpl.class,PeerModelImpl.class);
    }
}
